package commons.base.excel;

import java.util.List;

import commons.base.util.ReflectUtil;

public abstract class BaseExcelTemplate<T> {

	protected List<T> items;
	protected Class<T> modelType;
	
	@SuppressWarnings("unchecked")
	public BaseExcelTemplate(){
		modelType = (Class<T>)ReflectUtil.getGenericParameterTypes(this).get(0);
	}
	
	public Class<T> getModelType() {
		return modelType;
	}

	public void checkAssociatedTemplate(){
		
	}

	public List<T> getItems() {
		return items;
	}

	public void setItems(List<T> items) {
		this.items = items;
	}
	
}
